cmake_minimum_required(VERSION 3.10)
project(Ui C)

#set(CMAKE_C_STANDARD 11)
SET(CROSS_COMPILE 1)
set(CMAKE_SYSTEM_NAME Linux)

include_directories(/home/lize/workstation/rockchip/firefly-sdk/buildroot/output/rockchip_px30_64/host/aarch64-buildroot-linux-gnu/sysroot/usr/include)
include_directories(/home/lize/workstation/rockchip/firefly-sdk/buildroot/output/rockchip_px30_64/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/libdrm)
link_directories(/home/lize/workstation/rockchip/firefly-sdk/buildroot/output/rockchip_px30_64/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib)

include_directories(.)
include_directories(lv_drivers/display)
include_directories(lv_drivers/indev)
include_directories(lv_examples)
include_directories(lvgl)
include_directories(lvgl/src/lv_core)
include_directories(lvgl/src/lv_draw)
include_directories(lvgl/src/lv_hal)
include_directories(lvgl/src/lv_misc)
include_directories(lvgl/src/lv_misc/lv_fonts)
include_directories(lvgl/src/src/lv_widgets)
include_directories(lvgl/src/src/lv_themes)

add_executable(Ui
        lv_drivers/display/drmdev.c
        lv_drivers/display/drmdev.h
        lv_drivers/display/fbdev.c
        lv_drivers/display/fbdev.h
        lv_drivers/display/monitor.c
        lv_drivers/display/monitor.h
        lv_drivers/display/R61581.c
        lv_drivers/display/R61581.h
        lv_drivers/display/SSD1963.c
        lv_drivers/display/SSD1963.h
        lv_drivers/display/ST7565.c
        lv_drivers/display/ST7565.h
        lv_drivers/indev/AD_touch.c
        lv_drivers/indev/AD_touch.h
        lv_drivers/indev/evdev.c
        lv_drivers/indev/evdev.h
        lv_drivers/indev/FT5406EE8.c
        lv_drivers/indev/FT5406EE8.h
        lv_drivers/indev/keyboard.c
        lv_drivers/indev/keyboard.h
        lv_drivers/indev/mouse.c
        lv_drivers/indev/mouse.h
        lv_drivers/indev/XPT2046.c
        lv_drivers/indev/XPT2046.h
        lv_examples/src/lv_demo_benchmark/lv_demo_benchmark.c
        lv_examples/src/lv_demo_widgets/lv_demo_widgets.c
        lv_examples/src/lv_demo_stress/lv_demo_stress.c
        lv_examples/src/lv_ex_get_started/lv_ex_get_started_1.c
        lv_examples/src/lv_ex_get_started/lv_ex_get_started_2.c
        lv_examples/src/lv_ex_get_started/lv_ex_get_started_3.c
        lv_examples/src/lv_demo_printer/lv_demo_printer.c
        lv_examples/src/lv_demo_printer/lv_demo_printer_theme.c
        lv_examples/assets/img_cogwheel_rgb.c
        lv_examples/assets/img_cogwheel_argb.c
        lv_examples/assets/img_cogwheel_chroma_keyed.c
        lv_examples/assets/img_cogwheel_alpha16.c
        lv_examples/assets/img_cogwheel_indexed16.c
        lv_examples/assets/img_hand.c
        lv_examples/assets/lv_font_montserrat_12_compr_az.c
        lv_examples/assets/lv_font_montserrat_16_compr_az.c
        lv_examples/assets/lv_font_montserrat_28_compr_az.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_icon_bright.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_icon_eco.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_icon_hue.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_icon_pc.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_icon_tel.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_icon_wifi.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_btn_bg_1.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_btn_bg_2.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_btn_bg_3.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_btn_bg_4.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_cloud.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_copy.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_internet.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_mobile.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_no_internet.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_phone.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_print.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_printer2.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_ready.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_scan.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_scan_example.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_setup.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_usb.c
        lv_examples/src/lv_demo_printer/images/lv_demo_printer_img_wave.c
        lvgl/src/lv_core/lv_group.c
        lvgl/src/lv_core/lv_group.h
        lvgl/src/lv_core/lv_indev.c
        lvgl/src/lv_core/lv_indev.h
        lvgl/src/lv_core/lv_obj.c
        lvgl/src/lv_core/lv_obj.h
        lvgl/src/lv_core/lv_refr.c
        lvgl/src/lv_core/lv_refr.h
        lvgl/src/lv_core/lv_style.c
        lvgl/src/lv_core/lv_style.h
        lvgl/src/lv_core/lv_disp.c
        lvgl/src/lv_core/lv_disp.h
        lvgl/src/lv_draw/lv_draw_arc.c
        lvgl/src/lv_draw/lv_draw_blend.c
        lvgl/src/lv_draw/lv_draw_img.c
        lvgl/src/lv_draw/lv_draw_label.c
        lvgl/src/lv_draw/lv_draw_line.c
        lvgl/src/lv_draw/lv_draw_mask.c
        lvgl/src/lv_draw/lv_draw_rect.c
        lvgl/src/lv_draw/lv_draw_triangle.c
        lvgl/src/lv_draw/lv_img_buf.c
        lvgl/src/lv_draw/lv_img_cache.c
        lvgl/src/lv_draw/lv_img_decoder.c
        lvgl/src/lv_hal/lv_hal.h
        lvgl/src/lv_hal/lv_hal_disp.c
        lvgl/src/lv_hal/lv_hal_disp.h
        lvgl/src/lv_hal/lv_hal_indev.c
        lvgl/src/lv_hal/lv_hal_indev.h
        lvgl/src/lv_hal/lv_hal_tick.c
        lvgl/src/lv_hal/lv_hal_tick.h
        lvgl/src/lv_font/lv_font.c
        lvgl/src/lv_font/lv_font_fmt_txt.c
        lvgl/src/lv_font/lv_font_loader.c
        lvgl/src/lv_font/lv_font_montserrat_12.c
        lvgl/src/lv_font/lv_font_montserrat_14.c
        lvgl/src/lv_font/lv_font_montserrat_16.c
        lvgl/src/lv_font/lv_font_montserrat_22.c
        lvgl/src/lv_font/lv_font_montserrat_28.c
        lvgl/src/lv_font/lv_font_montserrat_32.c
        lvgl/src/lv_font/lv_font_unscii_8.c
        lvgl/src/lv_misc/lv_anim.c
        lvgl/src/lv_misc/lv_area.c
        lvgl/src/lv_misc/lv_async.c
        lvgl/src/lv_misc/lv_bidi.c
        lvgl/src/lv_misc/lv_color.c
        lvgl/src/lv_misc/lv_debug.c
        lvgl/src/lv_misc/lv_fs.c
        lvgl/src/lv_misc/lv_gc.c
        lvgl/src/lv_misc/lv_ll.c
        lvgl/src/lv_misc/lv_log.c
        lvgl/src/lv_misc/lv_math.c
        lvgl/src/lv_misc/lv_mem.c
        lvgl/src/lv_misc/lv_task.c
        lvgl/src/lv_misc/lv_templ.c
        lvgl/src/lv_misc/lv_txt_ap.c
        lvgl/src/lv_misc/lv_txt.c
        lvgl/src/lv_misc/lv_utils.c
        lvgl/src/lv_misc/lv_printf.c
        lvgl/src/lv_widgets/lv_arc.c
        lvgl/src/lv_widgets/lv_bar.c
        lvgl/src/lv_widgets/lv_bar.h
        lvgl/src/lv_widgets/lv_btn.c
        lvgl/src/lv_widgets/lv_btn.h
        lvgl/src/lv_widgets/lv_btnmatrix.c
        lvgl/src/lv_widgets/lv_canvas.c
        lvgl/src/lv_widgets/lv_chart.c
        lvgl/src/lv_widgets/lv_chart.h
        lvgl/src/lv_widgets/lv_cont.c
        lvgl/src/lv_widgets/lv_cont.h
        lvgl/src/lv_widgets/lv_list.c
        lvgl/src/lv_widgets/lv_gauge.c
        lvgl/src/lv_widgets/lv_img.c
        lvgl/src/lv_widgets/lv_img.h
        lvgl/src/lv_widgets/lv_keyboard.c
        lvgl/src/lv_widgets/lv_label.c
        lvgl/src/lv_widgets/lv_led.c
        lvgl/src/lv_widgets/lv_line.c
        lvgl/src/lv_widgets/lv_linemeter.c
        lvgl/src/lv_widgets/lv_list.c
        lvgl/src/lv_widgets/lv_msgbox.c
        lvgl/src/lv_widgets/lv_objmask.c
        lvgl/src/lv_widgets/lv_objx_templ.c
        lvgl/src/lv_widgets/lv_page.c
        lvgl/src/lv_widgets/lv_roller.c
        lvgl/src/lv_widgets/lv_slider.c
        lvgl/src/lv_widgets/lv_spinbox.c
        lvgl/src/lv_widgets/lv_spinner.c
        lvgl/src/lv_widgets/lv_switch.c
        lvgl/src/lv_widgets/lv_table.c
        lvgl/src/lv_widgets/lv_tabview.c
        lvgl/src/lv_widgets/lv_textarea.c
        lvgl/src/lv_widgets/lv_tileview.c
        lvgl/src/lv_widgets/lv_win.c
        lvgl/src/lv_widgets/lv_checkbox.c
        lvgl/src/lv_widgets/lv_dropdown.c
        lvgl/src/lv_widgets/lv_calendar.c
        lvgl/src/lv_widgets/lv_cpicker.c
        lvgl/src/lv_themes/lv_theme.c
        lvgl/src/lv_themes/lv_theme_empty.c
        lvgl/src/lv_themes/lv_theme_material.c
        lvgl/src/lv_themes/lv_theme_mono.c
        lvgl/src/lv_themes/lv_theme_template.c
        lv_conf.h
        lv_drv_conf.h
        main.c)

        target_link_libraries(Ui drm)